home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / info / drdtips.zip / 1116.TXT < prev    next >
Text File  |  1992-04-13  |  4KB  |  78 lines

  1. Document 1117
  2. SID memory detection of ROMs
  3. 04/13/92
  4. BK
  5.  
  6.                    SID, THE MEMORY DETECTOR
  7.  
  8.  
  9.      Occasionally  when  loading DR DOS 6.0's  EMM386.SYS  memory
  10. management driver, one will find that the MEM /A display shows an
  11. area of upper memory excluded from use. After attempts to  access
  12. the memory area through the use of the /Include or /Use  switches
  13. for EMM386.SYS have failed, one might begin to suspect that  some
  14. memory  addressed ROM chips are occupying that area. One can  use
  15. DR DOS 6.0's SID to check on that. To do this, load SID and  have
  16. it search the desired areas of memory for a copyright. If one  is
  17. found, displaying it will probably tell one which piece of  hard-
  18. ware is using the memory addresses. Below is an example:
  19.  
  20. Here is an excerpt of a MEM /A display that shows an area exclud-
  21. ed  at D7FF:0000 and a ROM chip at D800:0000 (the exclusion  will
  22. precede the ROM chip itself to protect the ROM's address).
  23.  
  24. │ CF00:0000 │ -------- │   9000h,  36,864 │ ---------- Upper RAM
  25. ├───────────┼──────────┼──────────────────┼──────────────────────
  26. │ CF00:0000 │   DR DOS │   8FF0h,  36,848 │ System
  27. │ CFE3:15C0 │   DR DOS │    DE0h,   3,552 │ DR DOS BIOS code
  28. │ D7FF:0000 │ EXCLUDED │   2010h,   8,208 │ Upper system memory
  29. ├───────────┼──────────┼──────────────────┼──────────────────────
  30. │ D800:0000 │ -------- │   2000h,   8,192 │ ------------- ROM ---
  31. │ DA00:0000 │ -------- │  16000h,  90,112 │ ---------- Upper RAM
  32. ├───────────┼──────────┼──────────────────┼──────────────────────
  33. │ DA00:0000 │   DR DOS │   9450h,  37,968 │ System
  34. │ D701:3000 │   DR DOS │   9440h,  37,952 │ DR DOS kernel code
  35.  
  36. To  get  SID to investigate that area, first load SID.  SID  will
  37. display  its  '#' prompt. Tell it to search the  area  of  memory
  38. using  the SR command looking for all the permutations  of  copy-
  39. right  markings. For example, the MEM display shows something  at
  40. D800:0000, so use the command
  41.  
  42.      SRD800:0000,FFFF,"COPYRIGHT
  43.        |_______|-> Change this number to investigate different
  44.                          areas of memory.
  45.  
  46.  "COPYRIGHT","Copyright","copyright","(C)",and "(c)" will usually
  47. cover all the bases. Notice that upper case/lower case IS  impor-
  48. tant. If SID finds some data in memory that matches one's  search
  49. parameters,  it  will  display the address of that  data  in  the
  50. SEGMENT:OFFSET  format. There may be more than one. Record  those
  51. addresses. Then display the data at each of those locations using
  52. the D command. The company name should give one some idea of  the
  53. hardware occupying the area of memory. Below is what the investi-
  54. gation of the above machine looks like:
  55. [DR DOS] C:\>SID
  56. --------------------------------------------------
  57. *** Symbolic Instruction Debugger ***  Release 3.2
  58.       Copyright (c) 1983,1984,1985,1988,1990,1991
  59.     Digital Research, Inc. All Rights Reserved
  60. --------------------------------------------------
  61.                                         ( COMMENTS )
  62. #SRD800:0,FFFF,"COPYRIGHT               ( Nothing found )
  63. #SRD800:0,FFFF,"copyright               ( Nothing found )
  64. #SRD800:0,FFFF,"Copyright
  65. D800:0056                               ( BINGO !! )
  66. #DD800:0056                             ( Display that area )
  67.  
  68. D800:0056 43 67 68 74 20 28 43 29 20 31 39 Copyright (C) 19
  69. D800:0066 38 42 54 72 61 6E 74 6F 72 20 53 89-90, Trantor S
  70. D800:0076 79 73 2C 20 4C 74 64 2E 0D 0A 00 1A ystems, Ltd.....
  71. D800:0086 00 07 73 01 CB 8D 36 34 00 E8 A6 04 ....9.s...64....
  72. D800:0096 B8 C6 06 74 00 00 C6 06 75 00 00 C6 .@.....t....u...
  73. #
  74.  
  75.      The copyright is held by the company that made the card that
  76. connects to the CDROM player in this particular machine, thus the
  77. presence of the card is why this area of memory is excluded.
  78.